﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class ERuneEffectType extends Object
    {
        public var __value:int;
        public static const _ERuneEffectSkillDistance:int = 1;
        public static const _ERuneEffectSkillRange:int = 2;
        public static const _ERuneEffectSkillTriggRate:int = 3;
        public static const _ERuneEffectSkillHitRate:int = 4;
        public static const _ERuneEffectSkillUseTime:int = 5;
        public static const _ERuneEffectSkillHurtEffect:int = 6;
        public static const _ERuneEffectSkillAddBuffRate:int = 7;
        public static const _ERuneEffectSkillCooldownTime:int = 8;
        public static const _ERuneEffectSkillExtraBuff:int = 9;
        public static const _ERuneEffectSkillSpecialEffect:int = 10;
        public static const _ERuneEffectSkillCopyBodyAttack:int = 11;
        public static const _ERuneEffectSkillLeadSkillCount:int = 12;
        public static const _ERuneEffectSkillHurtEffectEx:int = 13;
        public static const _ERuneEffectBuffTriggRate:int = 20;
        public static const _ERuneEffectBuffEffectAdd:int = 21;
        public static const _ERuneEffectBuffEffectMult:int = 22;
        public static const _ERuneEffectBuffLastTime:int = 23;
        public static const _ERuneEffectBuffOverLay:int = 24;
        public static const _ERuneEffectSkillSummonBossLive:int = 40;
        public static const _ERuneEffectAttriAttack:int = 101;
        public static const _ERuneEffectAttriLife:int = 102;
        public static const _ERuneEffectAttriMagic:int = 103;
        public static const _ERuneEffectAttriPhysicalDefense:int = 104;
        public static const _ERuneEffectAttriMagicDefense:int = 105;
        public static const _ERuneEffectAttriPenetration:int = 106;
        public static const _ERuneEffectAttriJouk:int = 107;
        public static const _ERuneEffectAttriHit:int = 108;
        public static const _ERuneEffectAttriCrit:int = 109;
        public static const _ERuneEffectAttriToughness:int = 110;
        public static const _ERuneEffectAttriBlock:int = 111;
        public static const _ERuneEffectAttriExpertise:int = 112;

        public function ERuneEffectType(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : ERuneEffectType
        {
            return new ERuneEffectType(param1);
        }// end function

        public static function __read(param1:SerializeStream) : ERuneEffectType
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 113)
            {
                throw new MarshalException();
            }
            return ERuneEffectType.convert(_loc_2);
        }// end function

    }
}
